package com.occupation_health.shiro;

import java.util.Collection;
import java.util.List;

import org.apache.shiro.authz.Permission;
import org.apache.shiro.authz.permission.RolePermissionResolver;
import com.occupation_health.model.Authority;

public class MyRolePermissionResolver implements RolePermissionResolver  {
	
	public Collection<Permission> resolvePermissionsInRole(String roleString) {
		List<Permission> result = new Authority()
				.getPermissionByRole(roleString);
		return result;
	}
}